package com.atguigu.eduservice.client.impl;

import com.atguigu.commonutils.R;
import com.atguigu.eduservice.client.VodClient;
import org.springframework.stereotype.Component;

import java.util.List;

//hystrix
//熔断器的实现类(当调用其他服务的接口出错了，就执行对应方法)
@Component
public class VodFileDegradeFeignClient implements VodClient {

    @Override
    public R removeAlyVideo(String id) {
        return R.error().message("删除视频出错了");
    }

    @Override
    public R deletebatch(List<String> videoIdList) {
        return R.error().message("删除多个视频出错了");
    }
}
